<div class="row-fluid">
<div class="span3 offset4">
<h4 align="center">Add new tools</h4>
<table>
<?php echo form_open(current_url()) ?>
<?php echo validation_errors(); ?>

<tr><td></td><td>
<select name="designation_id"><option>-- Select Designation -- </option>
	<?php foreach($query as $row){ ?>
<option value="<?= $row->id; ?>"><?= $row->name; ?></option>
<?php }?>
</select>
										
	</td></tr>
	<tr><td>Name: </td>
	<td>	
	<input type="text" name="toolname" placeholder="New tool name" />
	</td></tr>
	<tr><td></td><td><input type="submit" value="Add" class="btn btn-info"/></td></tr>

</form>
</table>

</div>

<div class="span11" style="margin-top: 60px;">
<header><i class="icon-wrench"></i> Predefined Tools</header>
<table class="table table-striped table-bordered" width="100%" id="example">
<thead>
	  <tr> 
	    <th>Name of the tool</th>
		  <th>User Associated with it</th>    
		<th>Action</th>    
	  </tr>
	  </thead>
<?php
	foreach($gettools as $row){
	$pID=$row->id;
	  echo "<tr>";
	  echo "<td>". ucfirst($row->toolname) ."</td>";
	    echo "<td>". ucfirst($row->titlename) ."</td>";
		 echo "<td>" .'<a href="'.site_url("founder/jobprofile/delete_tools/".$pID).'">'.'<i class="icon-trash icon-white"></i>'.'</a>'."</td>";
	  echo "</tr>";  
	}
?>
</table>
</div></div>

